package com.wyh.rabbitmqopsdemo.config;


import org.springframework.amqp.core.Queue;
import org.springframework.amqp.core.QueueBuilder;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class Config {
    @Bean("opsQueue")
    public Queue opsQueue(){
        return QueueBuilder.durable("ops.queue").quorum().build();
    }
}
